﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace dbPoll_Application.Models
{
    public class RankValue
    {
        public virtual int rankValueID { get; set; }
        [Range(1, 100, ErrorMessage = "Value must be between 1 and 100.")]
        public virtual int value { get; set; }

        public RankValue()
        {
            this.rankValueID = -1;
            this.value = -1;
        }

        public RankValue(int value)
        {
            this.rankValueID = -1;
            this.value = value;
        }

        public RankValue(int rankValueID, int value)
        {
            this.rankValueID = rankValueID;
            this.value = value;
        }
    }
}
